package com.example.cloud.dao.finance;

import com.example.cloud.model.finance.PaymentDetails;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/6/6.
 */
@Repository
public interface PaymentDetailsRepository extends JpaRepository<PaymentDetails,Long> {
    List<PaymentDetails> findAllByRecordIdAndRecordType(Long id, int type);
    PaymentDetails findByRecordIdAndRecordType(Long id, int type);
}
